<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed');

class Language_model extends CI_Model {
    
    public $tb_language = 'language';
    
    
    function __construct() {
        parent::__construct();
    }
    
    /* *****************************************************************************************************************
     * Name         : get_language
     * -----------------------------------------------------------------------------------------------------------------
     * Description  :
     * -----------------------------------------------------------------------------------------------------------------
     * Params       :
     * -----------------------------------------------------------------------------------------------------------------
     * Return       :
     * -----------------------------------------------------------------------------------------------------------------
     * Warning      :
     * -----------------------------------------------------------------------------------------------------------------
     * Copyright    : TAOWEBSITE
     * -----------------------------------------------------------------------------------------------------------------
     * Created      : New  2014/06/15 (TienPham)  
     * *************************************************************************************************************** */
    
    public function get_language()
    {
        $dbprefix = $this->config->item('dbprefix');
        $this->db->where('status', 1);
        $this->db->order_by("sort_order", "ASC");
        return $language = $this->db->get($dbprefix . $this->tb_language)->result_array();
    }
    
}
